<!-- Created Time:23/10/10 13:54:11 -->
<!-- Created By: Mande.Huang-->
<!-- Description: -->
<template>
  <Glass class="context">
    <template>
      <div class="container">
        <div class="choice" @click="MenuClick(0)">
          <div class="text">打开</div>
        </div>
        <div class="choice" @click="MenuClick(1)">
          <div class="text">移到废纸篓</div>
        </div>
        <div class="choice" @click="MenuClick(2)">
          <div class="text">显示简介</div>
        </div>
        <div class="choice" @click="MenuClick(3)">
          <div class="text">重新命名</div>
        </div>
        <div class="choice" @click="MenuClick(4)">
          <div class="text">复制</div>
        </div>
        <div class="choice" @click="MenuClick(5)">
          <div class="text">拷贝</div>
        </div>
        <div class="choice" @click="MenuClick(6)">
          <div>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
          </div>
          <div class="text">标签</div>
        </div>
      </div>
    </template>
  </Glass>
</template>
<script>
export default {
  name: "contextMenuDocument",
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {
    MenuClick(id) {
      this.bus.$emit("fileContextController", id);
    },
  },
};
</script>
<style lang="scss" scoped>
/* @import url(); 引入css类 */
.context {
  z-index: 9999;
  height: 14rem;
  width: 9rem;
  border-radius: 0.7rem;
  display: none;
  position: fixed;

  .container {
    display: flex;
    flex-direction: column;
    height: 100%;
    .choice {
      flex: 5;
      display: flex;
      flex-direction: row;
      .text {
        margin: 5px 5px 5px 5px;
        line-height: 100%;
        text-align: left;
        flex: 5;
      }

      .icon {
        flex: 1;
        background-color: red;
      }
    }
    .choice:hover {
      background-color: #6b9ff8;
      cursor: default;
    }
  }
}
</style>
